package com.xkdx.guangguang.presistence.attention;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class GetAttentionAction extends AbsAction {
	String userID;

	public GetAttentionAction(String userId) {
		this.userID = userId;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> shopMap = new HashMap<String, String>();
		shopMap.put("UserID", userID);
		String shopJson = constructJson(shopMap);
		Parameter shopParameter = new Parameter("attentInterface", "getAttentShopList", shopJson);

		HashMap<String, String> brandMap = new HashMap<String, String>();
		brandMap.put("UserID", userID);
		String json = constructJson(brandMap);
		Parameter brandParameter = new Parameter("attentInterface", "getAttentBrandList", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(shopParameter);
		list.add(brandParameter);
		requestData = constructMod(list);
	}

}
